import Vue from 'vue'
import App from '@/modules/common/App.vue'
import router from './router'
import '@/assets/base.scss'
// import "babel-polyfill";
import vueWechatTitle from 'vue-wechat-title'
Vue.use(vueWechatTitle)


import { Button, Cell, Field, Actionsheet, Picker, Popup, InfiniteScroll,Swipe, SwipeItem, Toast, Indicator, MessageBox, Range  } from 'mint-ui'
import MtInput from '@/components/MtInput.vue'
import MtSelect from '@/components/MtSelect.vue'
Vue.component(Button.name, Button)
Vue.component(Cell.name, Cell)
Vue.component(Field.name, Field)
Vue.component(Actionsheet.name, Actionsheet)
Vue.component(Picker.name, Picker)
Vue.component(Popup.name, Popup)
Vue.component(MtInput.name, MtInput)
Vue.component(MtSelect.name, MtSelect)
Vue.component(Swipe.name, Swipe)
Vue.component(SwipeItem.name, SwipeItem)
Vue.component(Range.name, Range)
Vue.use(InfiniteScroll);
Vue.prototype.$toast = Toast;
Vue.prototype.$indicator = Indicator;
Vue.prototype.$message = MessageBox;

Vue.config.productionTip = false

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
